package com.dragon.pear.models.params.order;


/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品图片关联 排序参数
 * Explain:
 * 
 */
public class TradeGoodsImageOrderParam {
    // ID
    private int id;
    // 商品编码
    private int code;
    // 图片URL
    private int imgUrl;
    // 图片类型 0 - 主图,1 - 图标,2 - 轮播图,3 - 详情图片,4 - 活动展示图
    private int type;

    // 无参构造方法
    public TradeGoodsImageOrderParam() {
    }

    // 全参数构造方法
    public TradeGoodsImageOrderParam(int id, int code, int imgUrl, int type) {
        this.id = id;
        this.code = code;
        this.imgUrl = imgUrl;
        this.type = type;
    }

    // 全参数create生成器
    public static TradeGoodsImageOrderParam create(int id, int code, int imgUrl, int type) {
        return new TradeGoodsImageOrderParam(id, code, imgUrl, type);
    }

    // 全参数of生成器
    public static TradeGoodsImageOrderParam of(int id, int code, int imgUrl, int type) {
        return new TradeGoodsImageOrderParam(id, code, imgUrl, type);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public TradeGoodsImageOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getCode() {
        return code;
    }

    public TradeGoodsImageOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getImgUrl() {
        return imgUrl;
    }

    public TradeGoodsImageOrderParam setImgUrl(int imgUrl) {
        this.imgUrl = imgUrl;
        return this;
    }

    public int getType() {
        return type;
    }

    public TradeGoodsImageOrderParam setType(int type) {
        this.type = type;
        return this;
    }

    // endregion Getter和Setter方法
}
